﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using PPI.Entities.Interface;
using PPI.General;
using PPI.Mobile;
using VMind.Global;

namespace PPI.ServiceLogic.Inspections
{
    public class LInspectionLength :IMobileTable
    {
        public List<EMobileQuery> CreateInsertMobileQuery(string connectionKey)
        {
            List<EMobileQuery> listQueries = new List<EMobileQuery>();
            listQueries.Add(new EMobileQuery("Delete tb_Lengths"));
            DataTable _Dt = FillSpecificDataTableHelper.FillDataTable(35, 95, 5);
            foreach (DataRow dr in _Dt.Rows)
            {
                listQueries.Add(new EMobileQuery("insert into tb_Lengths (LengthId, Name) values (" + ConvertHelper.ToInt32(dr["Id"]) + ",'" + dr["Name"].ToString() + "')"));
            }
            return listQueries;
            

        }
    }
}
